Skip to content

West Midlands | 2026-ITP-May | Alina Sofragiu | Sprint 1 | Form Controls#1281

Open
sofragiualina wants to merge 4 commits into
CodeYourFuture:mainfrom
sofragiualina:form
Open

West Midlands | 2026-ITP-May | Alina Sofragiu | Sprint 1 | Form Controls#1281
sofragiualina wants to merge 4 commits into
CodeYourFuture:mainfrom
sofragiualina:form

Conversation

@sofragiualina
Copy link
Copy Markdown

@sofragiualina sofragiualina commented May 15, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This PR creates a T-shirt order form using semantic HTML. It collects the user’s name, email, colour, and size, with built-in validation to ensure all fields are required and correctly formatted.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 6dc9a8d
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a08ae71c71b4800087b702a
😎 Deploy Preview https://deploy-preview-1281--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (🟢 up 5 from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

This comment has been minimized.

6 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sofragiualina sofragiualina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 15, 2026
@sofragiualina sofragiualina changed the title West Midlands | 25-ITP-May | Alina Sofragiu | Sprint 1 | Form Controls West Midlands | 2026-ITP-May | Alina Sofragiu | Sprint 1 | Form Controls May 16, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label May 18, 2026
Copy link
Copy Markdown

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good, nice styling. I have a question I would like you to answer about the name pattern you are using.

Comment thread Form-Controls/index.html
value=""
required
minlength="2"
pattern=".*\S.*\S.*"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is your goal here - why did you use this particular pattern?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal was to prevent whitespace-only input.pattern=“.\S.\S.*” ensures the value contains at least two non- whitespace characters adding validation on top of required and minlenght=“2” to avoid accidental blank submission
Appreciate the feedback, please feel free to suggest any further improvements or if I need to change anything

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good explanation! I just wanted to make sure you understood how that pattern works. This solution is complete

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you a lot for the feedback

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. Reviewed Volunteer to add when completing a review with trainee action still to take. labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants